package com.ParkingManager.app.dao;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface CarIOMapper {
	public boolean saveCar(@Param("carId")String carId, @Param("carType")int carType, @Param("image")String image, @Param("parkingId")int parkingId);
	public int getParkingId(String userName);
	public int getParkingMaxNum(int parkingId);
	public int getParkingNowNum(int parkingId);
	public boolean carOut(int recordId);
	public int getRecordId(String carId);
	public List<HashMap<String, Object>> getAllCar(int parkingId);
	public HashMap<String, Object> findCar(String carId);
}
